package com.dominos.voldemortstress;

import java.io.IOException;

public interface VoldemortStressMBean {
	float getAverageWriteTime();

	int getTotalNumberOfWrites();

	int getTotalNumberOfWriteErrors();

	void startStressTest();

	void stopStressTest() throws InterruptedException, IOException;

	void runStressTestForXSeconds(int seconds) throws InterruptedException, IOException;

	void clearStore();

	float getAverageReadTime();

	int getTotalNumberOfReads();

	int getTotalNumberOfReadErrors();

	void connectToStore();

	void disconnectFromStore();

	int getClientConfigMaxConnectionsPerNode();

	void setClientConfigMaxConnectionsPerNode(int maxConnectionsPerNode);

	int getClientConfigMaxThreads();

	void setClientConfigMaxThreads(int maxThreads);

	int getClientConfigMaxQueuedRequests();

	void setClientConfigMaxQueuedRequests(int maxQueuedRequests);

	boolean getClientConfigSocketKeepAlive();

	void setClientConfigSocketKeepAlive(boolean socketKeepAlive);

	void runStressTestFor5Seconds() throws InterruptedException, IOException;

	void runStressTestFor10Seconds() throws InterruptedException, IOException;

}
